import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import $HT from 'utils/request.js'

Vue.prototype.$HT = $HT

Vue.mixin({
	data(){
		return{
			miXinStateBar: '',
		}
	},
	methods:{
		SET_STATEBAR(value){
			this.miXinStateBar = value
		},
		SHOW_MSG(tip, icon = 'none'){
			uni.showToast({
				title: tip,
				icon: icon,
				duration: 1500
			})
		},
		PUSHPAGE(url){
			uni.navigateTo({
				url: url
			})
		},
		BACKPAGE(){
			uni.navigateBack()
		}
	}
})


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()




// #endif



// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif